import request from '@/utils/request'
import data from "../../views/system/dict/data";

// 查询表单字段列表
export function listField(query) {
  return request({
    url: '/apply/formField/list',
    method: 'get',
    params: query
  })
}

// 查询表单字段详细
export function getField(formFieldId) {
  return request({
    url: '/apply/formField/' + formFieldId,
    method: 'get'
  })
}

// 新增表单字段
export function addField(data) {
  return request({
    url: '/apply/formField',
    method: 'post',
    data: data
  })
}

// 修改表单字段
export function updateField(data) {
  return request({
    url: '/apply/formField',
    method: 'put',
    data: data
  })
}

// 删除表单字段
export function delField(formFieldId) {
  return request({
    url: '/apply/formField/' + formFieldId,
    method: 'delete'
  })
}

// 判断英文字段是否存在
export function isHasEn(data) {
  return request({
    url: '/apply/formField/check',
    method: 'post',
    data:data
  })
}

